package com.lidong.lowcode.database.test;

import com.lidong.lowcode.database.InitDataBaseStarter;
import com.lidong.lowcode.database.init.intf.InitDataBase;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 9/11/2022 10:51 AM
 */
@RestController
@RequestMapping("/database")
public class LowCodeDataBaseTestController {

    @Autowired
    private InitDataBase initDataBase;

    @Autowired
    private InitDataBaseStarter initDataBaseStarter;

    @RequestMapping("/one")
    public void testOne() throws Exception {
        // initDataBase.start();
        initDataBaseStarter.run("sss");
    }

}
